#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>


int main()
{
	int n = 0, count = 0;
	for (n = 100; n <= 200; n++)
		if (n % 7 == 2)
		{
			printf("%d", n);
			count++;
		}
	if (count % 5 == 0)
		printf("\n");
	return 0;
}